package mae.app;

import superheros.mae.app.SuperheroPiece;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class Superhero extends TabActivity {

	@Override
	public void onCreate(Bundle saveInstanceState) {
		super.onCreate(saveInstanceState);
		setContentView(R.layout.tabbed);
		Resources res = getResources();
		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;

		intent = new Intent().setClass(this, SuperheroPiece.class);

		spec = tabHost
				.newTabSpec("Superheros")
				.setIndicator("Superheros",
						res.getDrawable(R.drawable.ic_tab_superhero))
				.setContent(intent);
		tabHost.addTab(spec);

		tabHost.setCurrentTab(1);
	}
}